/**
 * @file       errorcode.h
 * @brief      TODO
 * @author     Huabo Zheng
 * @date       Jan 12, 2012
 * @Copyright  2012, www.netgear.com Inc. All rights reserved.
 */

#ifndef ERRORCODE_H_
#define ERRORCODE_H_

namespace NS_LCD_AFW
{

#define ERR_UNKNOW_EXECPTION_HAPPEN                          (-1)
#define ERR_SUCCESS                                          (0x00)

#define ERR_CODE_START                                       (400000000)                         //errror code base
#define ERR_FRAME_NAME_EMPTY                                 (ERR_CODE_START + 1)                 //it must set the name of the frame object while creating,while it's empty or null,it then return ERR_PANEL_NAME_EMPTY
#define ERR_INVALID_RECT                                     (ERR_CODE_START + 2)                 //when create the frame object with a invalid rect,the error code will return
#define ERR_ADD_LISTENER_FAILED                              (ERR_CODE_START + 3)
#define ERR_EVENT_UN_HANDLED                                 (ERR_CODE_START + 4)
#define ERR_INVALID_EVENTHANDLER                             (ERR_CODE_START + 5)
#define ERR_INVALID_LISTENER                                 (ERR_CODE_START + 6)
#define ERR_INVALID_EVENT                                    (ERR_CODE_START + 7)
#define ERR_NOT_KEYBOARD_EVENT                               (ERR_CODE_START + 8)
#define ERR_UN_HIGHTLIGHT_ABLE                               (ERR_CODE_START + 9)
#define ERR_UN_FOCUS_ABLE                                    (ERR_CODE_START + 10)
#define ERR_NULL_POINTER                                     (ERR_CODE_START + 11)
#define ERR_ELEMENT_NOT_FOUND                                (ERR_CODE_START + 12)
#define ERR_ELEMENT_EXISTS                                   (ERR_CODE_START + 13)
#define ERR_THREAD_NOT_READY                                 (ERR_CODE_START + 14)
#define ERR_THREAD_IS_RUNNING                                (ERR_CODE_START + 15)
#define ERR_UN_HANDLE                                        (ERR_CODE_START + 16)
#define ERR_CONTINUE                                         (ERR_CODE_START + 17)
#define ERR_EVENT_QUEUE_EMPTY                                (ERR_CODE_START + 18)
#define ERR_WAIT_TIMEOUT                                     (ERR_CODE_START + 19)
#define ERR_INPUT_DEV_RTN_FAILED                             (ERR_CODE_START + 20)
#define ERR_UNKNOW_EVENT                                     (ERR_CODE_START + 21)
#define ERR_NO_FOCUS_OBJECT                                  (ERR_CODE_START + 22)
#define ERR_NO_CHANGE                                        (ERR_CODE_START + 23)
#define ERR_NO_MEMORY                                        (ERR_CODE_START + 24)
#define ERR_INVALID_IP_ADDRESS                               (ERR_CODE_START + 25)
#define ERR_MAIN_PANEL_NOT_SET                               (ERR_CODE_START + 26)
#define ERR_NO_EVENT_LISTENER                                (ERR_CODE_START + 27)
#define ERR_THREAD_NOT_RUNNING                               (ERR_CODE_START + 28)
#define ERR_NO_ACTIVE_PANEL                                  (ERR_CODE_START + 29)
#define ERR_INIT_LCD_FAILED                                  (ERR_CODE_START + 30)
#define ERR_NOT_APP_EVENT                                    (ERR_CODE_START + 31)
#define ERR_OBJECT_UN_VISIBLE                                (ERR_CODE_START + 32)
#define ERR_START_KEYBOAD_THREAD_FAILED                      (ERR_CODE_START + 33)
#define ERR_UN_CURSOR_ABLE                                    (ERR_CODE_START + 34)

}
/* namespace NS_LCD_AFW */

#endif /* ERRORCODE_H_ */
